package com.hf.staticdemo;

/**
 * @author Lenovo-Healer
 */
public class TestDriver {
    public static void main(String[] args) {
        //通过类名来访问静态的属性和方法
        System.out.println(Student.SNO_SUM);
        Student.doExiting();
        System.out.println("-----------------------");
        test01();

    }

    /**
     * final关键字
     */
    public static void test01(){
        // 基本类型
        final int i = 0;
        //i =1;
        // 对于对象类型 -- 地址的值不能变
        final Student student = new Student();
        student.setsName("zhangsan");
        student.setsName("lisi");
        //student = new Student();
    }
}
